//
//  NewFeatureLayout.swift
//  SwiftWeibo
//
//  Created by Lucky on 16/5/12.
//  Copyright © 2016年 Lucky. All rights reserved.
//

import UIKit

class NewFeatureLayout: UICollectionViewFlowLayout {

    
    override func prepareLayout() {
        itemSize = UIScreen.mainScreen().bounds.size
        minimumInteritemSpacing = 0
        minimumLineSpacing = 0
        scrollDirection = UICollectionViewScrollDirection.Horizontal
        
        collectionView?.showsHorizontalScrollIndicator = false
        collectionView?.bounces = false
        collectionView?.pagingEnabled = true
    }
    
}
